]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: Open session/a11y menu on either button
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 25 May 2026 19:53:19 +0000 (21:53 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 26 May 2026 16:03:00 +0000 (18:03 +0200)
Users can choose whether the left or right mouse button acts
as the primary one, however that setting isn't carried over
to the login screen.

As the secondary button is unused in that context anyway, most
elements already accept either button. Do the same for the two
remaining elements.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/work_items/9243
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4225>
(cherry picked from commit 8f80504eca99e4191fbc5561abe65429e80a7d26)

js/gdm/loginDialog.js

index 9f8a3afc22edb287085e7fae52ffe9cbae2cc2ed..50f29f768d9e0fce84e2b43fb17fe45fb302a99f 100644 (file)
@@ -326,6 +326,7 @@ const SessionMenuButton = GObject.registerClass({
             can_focus: true,
             accessible_name: _('Choose Session'),
             accessible_role: Atk.Role.MENU,
+            button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
             x_align: Clutter.ActorAlign.CENTER,
             y_align: Clutter.ActorAlign.CENTER,
         });
@@ -419,6 +420,7 @@ class A11yMenuButton extends St.Button {
             icon_name: 'org.gnome.Settings-accessibility-symbolic',
             accessible_name: _('Accessibility'),
             accessible_role: Atk.Role.MENU,
+            button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
             can_focus: true,
         });